home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / inc9110b.lzh / include / limits.h < prev    next >
C/C++ Source or Header  |  1991-03-17  |  1KB  |  49 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  *
  5.  * This code is freely redistributable upon the conditions that this 
  6.  * notice remains intact and that modified versions of this file not
  7.  * be included as part of the PDC Software Distribution without the
  8.  * express consent of the copyright holders.  No warrantee of any
  9.  * kind is provided with this code.  For further information, contact:
  10.  *
  11.  *  PDC Software Distribution    Internet:                     BIX:
  12.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  13.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  14.  */
  15.  
  16. /*  limits.h - ANSI-compatible numerical limits (dpANSI 2.2.4.2)
  17.  */
  18.  
  19. /*
  20.  * 17.3.91 sjw; ensure only effective once
  21.  */
  22.  
  23. #ifndef __LIMITS_H__
  24. #define __LIMITS_H__
  25.  
  26. #define    BITSPERBYTE    8
  27. #define    CHAR_BIT    BITSPERBYTE
  28. #define    SCHAR_MIN    (-128)
  29. #define    SCHAR_MAX    (127)
  30. #define    UCHAR_MAX    (~((unsigned char) 0))
  31. #define    CHAR_MIN    SCHAR_MIN
  32. #define    CHAR_MAX    SCHAR_MAX
  33. #define MB_LEN_MAX    1
  34. #define    SHRT_MIN    (-32768)
  35. #define    SHRT_MAX    (32767)
  36. #define    USHRT_MAX    (~((unsigned short) 0))
  37. #define    INT_MIN        (-2147483648)
  38. #define    INT_MAX        (2147483647)
  39. #define    UINT_MAX    (~((unsigned int) 0))
  40. #define    LONG_MIN    INT_MIN
  41. #define    LONG_MAX    INT_MAX
  42. #define    ULONG_MAX    (~((unsigned long) 0))
  43.  
  44. #define    PATHSIZE    (1024L)
  45. #define    MAXPATH        PATHSIZE
  46. #define MAXSTRING    (1024L)
  47.  
  48. #endif /* __LIMITS_H__ */
  49.